package com.fushenlan.epidemicControl.service;

import com.fushenlan.Vo.InhabitInfoVo;
import com.fushenlan.commons.GeneralResponse;
import com.fushenlan.epidemicControl.dto.InhabitantInfoDto;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.util.List;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.epidemicControl.service
 * @VERSION 1.0
 */
public interface InhabitantInfoService {

    List<InhabitInfoVo> findInhabitList(InhabitantInfoDto infoDto);

    GeneralResponse addInhabitInfo(InhabitantInfoDto inhabitantInfoDto);

    GeneralResponse updateInhabitInfo(InhabitantInfoDto inhabitantInfoDto);

    void deleteInhabitinfo(Integer id);

    void downloadInhbitModel(List<InhabitInfoVo> inhabitInfoVos, HttpServletResponse response);

    void exportInhabitInfo(Integer neighborId, HttpServletResponse response);

    void uploadInhabitList(Integer neighborId, MultipartFile multipartFile, HttpServletResponse response) throws FileNotFoundException, Exception;

    List<InhabitInfoVo> getFamilylist(InhabitantInfoDto infoDto);

    GeneralResponse batchModifyInhabit(List<InhabitantInfoDto> list);

    long getNotRegisterInhabitNum(Integer neighobrId);
}
